/**
 * Created by Administrator on 2017/5/2 0002.
 */

import com.alibaba.fastjson.JSON;

import domain.Student;
import io.netty.util.HashedWheelTimer;
import io.netty.util.Timeout;
import io.netty.util.TimerTask;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.MapUtils;

import org.apache.commons.lang3.StringUtils;
import org.dozer.DozerBeanMapper;
import org.dozer.Mapper;
import org.springframework.cglib.beans.BeanCopier;
import vo.DriverDataCenter;
import java.io.*;
import java.lang.reflect.InvocationTargetException;
import java.text.ParseException;
import java.util.concurrent.TimeUnit;


/**
 * 描述
 * Administrator
 * 2017/5/2 0002 10:29
 */
public class test {
    public static void main(String[] args) throws IOException, IllegalAccessException, NoSuchMethodException, InvocationTargetException, ClassNotFoundException, ParseException {
        HashedWheelTimer timer = new HashedWheelTimer(24, TimeUnit.SECONDS,12);
        TimerTask task = new TimerTask() {
            @Override
            public void run(Timeout timeout) throws Exception {
                System.out.println("我被执行了");
            }
        };
        timer.newTimeout(task, 1000, TimeUnit.SECONDS);
    }
}
